/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agilelang.editor.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JOptionPane;
//import org.agilelang.db.sync.DlgSync;
import org.agilelang.editor.ViewFrame;

/**
 *
 * @author RODERICK
 */
public class DBSync implements ActionListener {

    ViewFrame frame;

    public DBSync(ViewFrame frame) {
        this.frame = frame;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (frame.getPathProject().equals("")) {
            JOptionPane.showMessageDialog(null, "Create a new Project",
                    "Error", JOptionPane.ERROR_MESSAGE);
            return;
        }
        /*DlgSync dlg = new DlgSync(new javax.swing.JFrame(), true, frame.getPathProject() + File.separator + "out" + File.separator + "meta.xml");
        dlg.setLocationRelativeTo(null);
        dlg.setVisible(true);*/
    }
}
